﻿using Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace BusinessLogic
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "ISanPhamService" in both code and config file together.
    [ServiceContract]
    public interface ISanPhamService
    {
        [OperationContract]
        List<SanPham> DanhSachSanPham(long idloai);
        [OperationContract]
        List<SanPham> TimKiemSanPham(string tukhoa, long giatu, long giaden);
        [OperationContract]
        List<LoaiSanPham> DanhSachLoaiSanPham();
        [OperationContract]
        SanPham ChiTietSanPham(long IdSanPham);
        [OperationContract]
        string CapNhatLoaiSanPham(LoaiSanPham lsp);
        [OperationContract]
        string CapNhatSanPham(SanPham sp);

        [OperationContract]
        string CapNhatSanPhamChiTiet(SanPhamAnhCT anhct,SanPhamNoiDungCT noidungct);
    }
    
}
